<?php
/**
 * @Author: rocky
 * @Copyright: 广州拓冠科技 <http://my8m.com>
 * Date: 2019/8/26
 * Time: 11:30
 */


namespace app\shop\validate;


use app\common\validate\BaseValidate;

class CartValidate extends BaseValidate
{
    protected $rule = [
        'good_id' => 'require|egt:1',
        'store_id'=>'require|egt:1',
        'num'=>'require|egt:1',
    ];
    
    protected $messages = [
        'good_id.require' => '请选择商品',
        'store_id.require' => '请选择门店',
        'good_id.egt' => '请选择商品',
        'store_id.egt' => '请选择门店',
        'num.require' => '请选择数量',
        'num.egt' => '请选择数量'
    ];
}